package it.tukano.swingdeco.containers;

import java.awt.Component;
import java.awt.GridLayout;
import javax.swing.BorderFactory;
import javax.swing.JPanel;

public class TitledWrapper extends JPanel {

    private static final long serialVersionUID = 0;

    public TitledWrapper(String title, Component c) {
        super(new GridLayout(1, 1));
        setBorder(BorderFactory.createTitledBorder(title));
        add(c);
    }
}
